package com.hh.nacosconfigtest.controller;

import com.hh.nacosconfigtest.entity.Hero;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class TestController {
    @Resource
    private Hero hero;

    @GetMapping("/info")
    public String getInfo() {
        return hero.toString();
    }
}
